// function Person(name, age,sex) {
//     this.name = name;
//     this.age = age;
//     this.sex = sex;
// }
//
// function Student(name, age,sex, score) {
//     Person.call(this,name,age,sex);
//     this.score = score;
// }
//
// var student = new Student('sunleilei',26,1,100);
// console.log(student);
//借用构造函数继承  原型继承

//组合继承
class Test {

}
class T extends Test{

}

var t = new T();
t.name = 'sun';
t.address = 'china';
console.log(t);
